package ac.zlf.maven.template.controller;

import ac.zlf.maven.template.service.UserService;
import de.felixroske.jfxsupport.FXMLController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import org.springframework.beans.factory.annotation.Autowired;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * Created by Administrator on 2018/6/16.
 */
@FXMLController
public class Item1Controller extends ParentController {

    @Autowired
    private UserService userService;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        System.out.println(userService.findAll());
    }
    @FXML
    public void handlerBtnClick(ActionEvent event) {
        System.out.println(userService.findAll());
    }
}
